package eteam.aps.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import eteam.aps.model.vo.sale.SaleOrderDetailsVo;
import eteam.aps.model.entity.sale.SaleOrderBll;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * 销售单物料信息 Mapper 接口
 *
 * @author Ll
 * @since 2024/01/09
 */
@Mapper
public interface SaleOrderBllMapper extends BaseMapper<SaleOrderBll> {
    /**
     * 批量添加订单物料信息
     *
     * @param saleBil 物料信息
     */
    void batchInsert(List<SaleOrderBll> saleBil);

    /**
     * 查询订单物料详情
     * @param map 查询条件
     * @return 订单物料详情
     */
    List<SaleOrderDetailsVo> selectDetailsList(Map<String, Object> map);

    /**
     * 根据订单编号修改订单物料信息
     * @param map 订单编号
     */
    void updateBySaleOrderId(Map<String, Object> map);
}
